package com.sdcqjy.property.utils;

import android.content.res.Resources;

import com.sdcqjy.property.AppLL;
import com.sdcqjy.property.R;

/**
 * Created by 磁磁帅 on 2018/4/1.
 * 功能：
 */

public class TitleUtils {
    public static String getTitle(int categoryID) {
        if (categoryID == 8) {
            return "帮助";
        } else if (categoryID == 9) {
            return "产股权";
        } else if (categoryID == 10) {
            return "增资";
        } else if (categoryID == 11) {
            return "资产";
        } else if (categoryID >= 15 && categoryID <= 17) {
            Resources res = AppLL.getAppLL().getResources();
            if (categoryID == 15) {
                return res.getString(R.string.gycqdl);
            } else if (categoryID == 16) {
                return res.getString(R.string.woyaotouzhi);
            } else {
                return res.getString(R.string.woyaorongzhi);
            }
        } else if (categoryID == 6) {
            Resources res = AppLL.getAppLL().getResources();
            return res.getString(R.string.wangluojinjia);
        }
        return "";
    }

    public static boolean isGone(int categoryID) {
        if (categoryID == 8) {
            return true;
        } else if (categoryID >= 9 && categoryID <= 17) {
            return true;
        } else if (categoryID == 3 || categoryID == 4 || categoryID == 14 || categoryID == 6
                || categoryID == 25) {
            return true;
        }
        return false;
    }

    public static boolean canEmail(int categoryID) {
        if (categoryID == 1 || categoryID == 2 || categoryID == 5 || categoryID == 6 || categoryID == 9
                || categoryID == 10 || categoryID == 11)
            return true;
        return false;
    }

    public static boolean has围观and关注(int categoryID) {
        if (categoryID == 1 || categoryID == 2 || categoryID == 5)
            return true;
        return false;
    }

    public static boolean has关注Btn(int categoryID) {
        if (categoryID == 25)
            return false;
        return true;
    }

}
